﻿using STHPMS1.ICore.I_Entity.Info;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Linq.Expressions;

namespace STHPMS1.ICore.I_BLL.Bus
{
    public interface IB_PmstcBill : IBll
    {
       
        /// <summary>
        /// 根据路线变化获取设计弯沉对象
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="RDWAYID"></param>
        /// <returns></returns>
        IEnumerable<T> GetPmstc<T>(string RDWAYID) where T : class,IB_Pmstc;
        /// <summary>
        /// 根据材料得到对应的系数对象
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="stru_id"></param>
        /// <returns></returns>
        List<T> SearchByStruId<T>(string stru_id) where T : class, IB_Stru_Mate;
        /// <summary>
        /// 得到层的表结构
        /// </summary>
        /// <returns></returns>
        DataTable GetLayerEmptyData();
        /// <summary>
        /// 得到结构的表结构
        /// </summary>
        /// <returns></returns>
        DataTable GetEmptyData();
        void Save<T>(T entity) 
            where T:class ,IB_Pmstc;

        void Remove(IB_Pmstc entity);

        IEnumerable<T> Get<T>(Expression<Func<T, bool>> predicate, IPagingInfo info)
            where T : class, IB_Pmstc;

        string GetDEGDF(double start, double end, string rdid);

        ArrayList GetLayers(string struid = null);
        /// <summary>
        /// 获取层可选材料
        /// </summary>
        /// <param name="lay"></param>
        /// <returns></returns>
        DataTable GetLayerMate(int lay);
        /// <summary>
        /// 保存结构的层数据，并返回总厚度
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        double SaveLayInStruct(string rdwayid, int direction_Dictid, string struid, string data);
    }
}
